/**
 * @author: Loy-winters1224@163.com
 * @date: 2014-8-21-下午3:48:39
 */
package net.loyintean.pearlshell.wechat.model.event;

import net.loyintean.pearlshell.wechat.common.EventEnum;
import net.loyintean.pearlshell.wechat.common.MessageTypeEnum;
import net.loyintean.pearlshell.wechat.model.BaseMessageModel;

/**
 * 
 * @author Loy-winters1224@163.com
 * @version 2014-8-21.1.0.0
 */
public class EventMessageModel extends BaseMessageModel {

	public EventMessageModel() {
		super(MessageTypeEnum.event);
	}

	private EventEnum event;

	/**
	 * @return the {@link #event }
	 */
	public EventEnum getEvent() {
		return event;
	}

	/**
	 * @param event
	 *            the {@link #event }to set
	 */
	public void setEvent(EventEnum event) {
		this.event = event;
	}

	/**
	 * 
	 * @author Loy-winters1224@163.com
	 * @see java.lang.Object#toString()
	 * 
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("EventMessageModel [");
		if (event != null) {
			builder.append("event=");
			builder.append(event);
			builder.append(", ");
		}
		if (super.toString() != null) {
			builder.append("toString()=");
			builder.append(super.toString());
		}
		builder.append("]");
		return builder.toString();
	}

}
